package com.bing.common.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description InterceptorProperties
 * @Author Bing
 * @Date 2024/10/14 17:16
 */
@Getter
@Setter
@Component
@ConditionalOnProperty(name = "config.interceptor.enable", havingValue = "true")
@ConfigurationProperties(prefix = "config.interceptor")
public class InterceptorProperties {

    private String name;

    private Boolean enabled;

    private String[] urlPatterns;

    private String[] urlWhitelist;
}